

function aaa() {
//   // get请求
  var url = "/film/api/v1/getCitiesInfo"
  // Get(url).then(res => {
  // console.log("res", res)

  // })
  // post请求
  console.log("首页请求");
  let params = {
    url: "/film/api/v1/getNowPlayingFilmList",
    data: {
      cityId: "110100",
    },
  };
  Post(params).then(res => {
    // console.log("res", res)
    let sd = res.data.films;
    let shtml = "";
    for (var i = 0; i < sd.length; i++) {
      shtml += `<li>名称：` + sd[i].name + `</li>`;
    }
    $(".indexList").html(shtml);
  });
}
aaa();
$('#idindex').text('文件index.js设置')
layer.msg("hello");
function showEchart1() {
	console.log('执行11');
  var echart1 = echarts.init($("#echartbox")[0]);
  var option1 = {
    xAxis: {
      type: "category",
      data: ["Mon", "Tue"],
    },
    yAxis: {
      type: "value",
    },
    series: [
      {
        data: [666, 8968],
        type: "line",
      },
    ],
  };
  echart1.setOption(option1, true);
}
showEchart1();
